package org.csu.mypetstore.web.servlets;

import org.csu.mypetstore.service.AccountService;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
//转到修改信息界面
public class ChangeInfoServlet extends HttpServlet {
    private static final String MY_ACCOUNT = "/WEB-INF/jsp/account/EditAccountForm.jsp";

    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        doGet(request,response);
    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
       //跳转到改信息页面
            request.getRequestDispatcher(MY_ACCOUNT).forward(request,response);
    }
}
